package com.itheima.mapper;

import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SetmealMapper {
    void add(Setmeal setmeal);

    void setSetmealAndCheckGroup(@Param("checkGroupIds") Integer[] checkGroupIds,@Param("id") Integer id);

    List<Setmeal> findByCondition(@Param("queryString")String queryString);

    //查询所有套餐
    List<Setmeal> findSetmealAll();

    //根据id查询具体某个套餐 包括该套餐的检查组和检查项
    Setmeal findById(String id);

    Integer findMemberBySex(@Param("num")Integer num);
}
